<?php

namespace app\api\controller;

use  app\common\controller\DBase;
use think\facade\Db;
use app\api\logic\ApiAdvggLogic;
use Throwable;

class ApiAdvgg extends DBase
{
    /**
     * 模型
     * @var object
     * @phpstan-var ApiAdvggaccountModel
     */

    public function initialize(): void
    {
        parent::initialize();
    }
    /**
     * 获取tiktok广告--token
     * @throws Throwable
     */
    public function GetggToken()
    {
        $params     = $this->request->get();
        $ApiAdvggLogic = new ApiAdvggLogic();
        return $ApiAdvggLogic->GetggToken($params);
    }
    /**
     * 谷歌广告明细
     * @throws Throwable
     */
    public function GetggAdInfo()
    {
        $params     = $this->request->get();
        $ApiAdvggLogic = new ApiAdvggLogic();
        return $ApiAdvggLogic->GetggAdInfo($params);
    }


}
